const db=require('./db/db');
const mongoose=require('mongoose');
const BookModle=require('./db/book');
const MoviesModle=require('./db/movies');
db(
    ()=>{
        console.log('连接成功');
        
        MoviesModle.create({
        name:'你的名字',
        author:'新海诚',
        price:39
        },(err,data)=>{
        if(err)
        {
            console.log(err);
            return;
        }
        console.log(data);
        });
        
    },
    ()=>{console.log('连接失败');}
);